home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / amiutils / i_l / irit5 / misc_lib / irit_ftl.c < prev    next >
C/C++ Source or Header  |  1995-12-30  |  2KB  |  30 lines

  1. /*****************************************************************************
  2. * Default fatal error handler for irit.                         *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, April 1993  *
  5. *****************************************************************************/
  6.  
  7. #include <stdio.h>
  8. #include "irit_sm.h"
  9.  
  10. /*****************************************************************************
  11. * DESCRIPTION:                                                               M
  12. * Default trap for IRIT programs for irit fatal errors.                 M
  13. *   This function just prints the given error message and die.             M
  14. *                                                                            *
  15. * PARAMETERS:                                                                M
  16. *   Msg:       Error message to print.                                       M
  17. *                                                                            *
  18. * RETURN VALUE:                                                              M
  19. *   void                                                                     M
  20. *                                                                            *
  21. * KEYWORDS:                                                                  M
  22. *   IritFatalError, error trap                                               M
  23. *****************************************************************************/
  24. void IritFatalError(char *Msg)
  25. {
  26.     fprintf(stderr, "Irit Fatal Error: %s\n", Msg);
  27.  
  28.     exit(-1);
  29. }
  30.